<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="com.book.web.Book" %>
<%@ page import="java.util.List" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="referrer" content="no-referrer" />
    <title>Book List</title>
    <style>
        #photo1{
            position: absolute;
            top: 0px;
            left:0px;
        }
        #frame1{
            background-color: rgba(58, 57, 57, 0.75);
            border-radius: 4px;
            width: 1450px;
            height: 720px;
            position:absolute;
            left: 0px;
            top: 0px;
        }
        #ta{
            position: absolute;
            background-color: rgb(253, 248, 237);
            border: rgba(0, 0, 0, 0.834);
            color: rgba(0, 0, 0, 0.908);
            width: 1450px;
            top: 120px;
            left:0px;
            font-size: 26px;
        }
        #line{
            background-color: rgba(230, 159, 6, 0.851);
            position: absolute;
            top: 100px;
            left:0px;
            width: 1450px;;
            height: 2px;;
        }
        button[name="first"]{
            appearance: none;
            position: absolute;
            background-color: rgba(255, 255, 255, 0);
            border: 0;
            color: rgba(255, 255, 255, 0.908);
            top: 65px;
            left:1140px;
            font-size: 30px;
        }
        button[name="exit"]{
            appearance: none;
            position: absolute;
            background-color: rgba(255, 255, 255, 0);
            border: 0;
            color: rgba(248, 248, 248, 0.908);
            top: 65px;
            left:1260px;
            font-size: 30px;
        }
        #ph{
            top: 5px;
            left:100px;
            width: 130px;
            height: 180px;
        }
        button[name="return"]{
            appearance: none;
            position: absolute;
            background-color: rgba(255, 255, 255, 0);
            border: 0;
            color: rgba(248, 248, 248, 0.908);
            top: 65px;
            left:260px;
            font-size: 30px;
        }
        h1{
            color: rgba(46, 45, 45, 0.91);
            font-size: 20px;
            top: 65px;
            left:360px;
        }
        h2{
            color: rgba(46, 45, 45, 0.91);
            font-size: 20px;
        }
        h3{
            color: rgba(46, 45, 45, 0.91);
            font-size: 17px;
        }
        h4{
            width: 600px;
            height: 20px;
            color: rgba(46, 45, 45, 0.91);
            font-size: 15px;
        }
        #de{
            position: absolute;
            left:1300px;
            font-size: 20px;
        }
        #re{
            position: absolute;
            left:1200px;
            font-size: 20px;
        }
    </style>
</head>
<body>
<p id="photo1"><img src="https://zs.stu.edu.cn/images/21/06/11/1vtx9km97b/_K012215.jpg" width="1450" height="720"/></p >
<p id="frame1"></p >
<p id="line"></p>
<p id="f2"></p>
<button onclick="window.location.href='personmanager.jsp'" type="button" name="first">首页</button>
<button onclick="window.location.href='a.html'" type="button" name="exit">退出</button>
<button onclick="window.location.href='personmanager.jsp'" type="button" name="return">返回</button>
<table id="ta">
    <%
        List<Book> bookList = (List<Book>) request.getAttribute("bookList");
        for (int i = 0; i < bookList.size(); i++) {
            Book book = bookList.get(i);
    %>
    <tr>
        <th><h1><%=book.getId()%></h1></th>
        <th><img src="<%=book.getPhoto()%>" id="ph"></th>
        <th><h2><%=book.getName()%><br></h2><h3><%=book.getAuthor()%>&emsp;&emsp;<%=book.getType()%></h3></th>
        <th><h4><%=book.getContent()%></h4></th>
        <th><a href="managerupdate.jsp?id=<%=book.getId()%>" id="re">修改</a></th>
        <th><a href="delect?bookid=<%=book.getId()%>" id="de">删除</a></th>
    </tr>
    <%
        }
    %>

</table>
</body>
</html>